import java.util.Scanner;
public class test {

    public static void main(String[] args) {
       // int ret=max(1,2);
        double ret2=max(1,9,3);
        //System.out.println("两个整数的较大值是"+ret);
        System.out.println("三个浮点数的最大值"+ret2);
    }
    public static double max(double a,double b){
        return Math.max(a,b);           //积累（Math.max(int,int)）
    }
    public static double max(double a,double b,double c){
        double ret=max(a,b);
        return Math.max(ret,c);
    }
    public static void main5(String[] args) {  //汉诺塔
        int n;
        Scanner p=new Scanner(System.in);
        n=p.nextInt();
        System.out.println("汉诺塔问题指的是把a柱上的n的盘子放到c柱上");
        System.out.println("现在有a,b,c三根柱子，有"+n+"个盘子放在a柱上");
        hanoi(n,'a','b','c');
    }
    public static void hanoi(int n,char a,char b,char c){
        if(n==1)
        {
            move(n,a,c);
            return;
        }
        hanoi(n-1,a,c,b);
        move(n,a,c);
        hanoi(n-1,b,a,c);

    }
    public static void move(int n,char a,char b){
        System.out.println("编号为"+n+"的盘子从"+a+"——>"+b);
    }

    public static void main4(String[] args) { //使用方法的重载计算不同类型数的最大值
        //int ret=max(1,2);
        double ret2=max(1,2,3);
        //System.out.println("两个整数的较大值是"+ret);
        System.out.println("三个浮点数的最大值"+ret2);
    }
/*
    public static int max(int a,int b){
        return a>b?a:b;
    }
    public static double max(double a,double b){
        return a>b?a:b;
    }
    public static double max(double a,double b,double c){
        double ret=max(a,b);
        return ret>c?ret:c;
    }

 */
    public static void main3(String[] args) {  //方法重载求数的和
        int a,b;
        double c,d,e;
        Scanner p=new Scanner(System.in);
        a=p.nextInt();
        b=p.nextInt();
        c=p.nextDouble();
        d=p.nextDouble();
        e=p.nextDouble();
        int ret=sum(a,b);
        System.out.println(ret);
        double ret1=sum(c,d,e);
        System.out.println(ret1);
    }

    public static int sum(int a,int b){
        return a+b;
    }
    public static double sum(double c,double d,double e){
        return c+d+e;
    }
    public static void main2(String[] args) { //函数中调用另一个函数求较大值
        int a,b,c;
        Scanner p=new Scanner(System.in);
        a=p.nextInt();
        b=p.nextInt();
        c=p.nextInt();
        int ret1=max1(a,b);
        System.out.println("a和b中较大的是"+ret1);
        int ret2=max2(a,b,c);
        System.out.println("a和b和c中最大的是"+ret2);
    }

    public static int max1(int a,int b){
        return a>b?a:b;
    }
    public static int max2(int a,int b,int c){
        int d=max1(a,b);
        return c>d?c:d;
    }
    public static void main1(String[] args) {  //复习
        /*
        float f=10;
        double d=11;
        //f=d;  //不安全，会丢失
        int a=1;
        d=a;
        a=d;
         */
        int num=10;
        String a=num+"哈哈";
        System.out.println(a);
        String b=String.valueOf(num);
        System.out.println(b);

        String c="123";
        num=Integer.parseInt(c);
        System.out.println(num);
    }
}
